package com.dlwx.firefighting.adapter;

import android.content.Context;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.bean.ProvinceBean;

/**
 * Created by Administrator on 2017/9/6.
 */

public class AddressAdapter extends ListBaseAdapter<ProvinceBean> {
    private Context context;
    public AddressAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_text;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        ProvinceBean bean = getDataList().get(position);
        TextView textView=holder.getView(R.id.content);
        textView.setText(bean.getName());
    }
}
